
layui.use(['layer','laydate'], function(){

});

var wnUserFarmConsoleGrid =new consoleGrid({table_id:"wnUserFarm"});
wnUserFarmConsoleGrid.init();
function wnUserFarmTableOperate(value){
return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='consoleOpenWindow(\"wnUserFarm\",\"/console/wn_user_farm/edit?id="+value+"\",\"编辑\")'><span class='glyphicon glyphicon-pencil'></span></button> ";
}
function wnUserFarmLoadParam(params){
params.query=wnUserFarmQueryString();
return params;
}
function wnUserFarmQueryString() {
var objQuery = new Object();
    objQuery.userId=$('#userId').val()==''?null:$('#userId').val(); 
     objQuery.farmId=$('#farmId').val()==''?null:$('#farmId').val(); 
 
var queryString = JSON.stringify(objQuery);
return queryString;
}

